package com.chixing.day05_oop;

public class Test2 {
    public static void main(String[] args) {
        SavingAccount2 sa = new SavingAccount2();
        sa.depoist(100);
        System.out.println(sa);

        Account2 sa2 = new SavingAccount2();  //父类引用子类
        sa2.deposite(100);
        System.out.println(sa2);
    }
}
